public class J03dowhile {
    public static void main(String[] args) {
        /*
        while(boolean){
        }

        for(1;2;3){
        }


        需求：打印1~100之间（含1和100）所有的整数。
         */

        int num = 1;
        do{
            //1,2,....99,100,
            System.out.println(num);
            num++;//逼近false
        }while (num<101);
        System.out.println("end");
    }
}

class Do2{
    public static void main(String[] args) {
        for(int i = 1; i < 3; i++) {
            //1,2,
            System.out.println(i);
        }
//        System.out.println(i);
        System.out.println("---华丽的分割线---");
        int j = 1;
        while(j < 3) {
            //1,2
            System.out.println(j);
            j++;
        }
        System.out.println(j);//3
        System.out.println("---华丽的分割线---");
        int k = 1;
        do {
            //1,2,
            System.out.println(k);
            k++;
        }while(k < 3);
        System.out.println(k);//3
    }
}
